package com.auxgroup.hr.front.dao.domain;

import java.io.Serializable;
import java.math.BigDecimal;

import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 * @author lvliuhao 
 * @version 创建时间：2018年9月9日 下午4:10:19 
 * 类说明 
 */
public class PsCEpAppSecRPrimary implements Serializable {
	private static final long serialVersionUID = 5715173043195854351L;
	
	private String cEpAppraisalId;
	private String cEpPhase;
	private BigDecimal cEpSectionId;
	private String cEpTemplate;
	private BigDecimal emplRcd;
	private String emplid;
	private BigDecimal seqnbr;
	private BigDecimal version;
	
	
	public String getcEpAppraisalId() {
		return cEpAppraisalId;
	}


	public void setcEpAppraisalId(String cEpAppraisalId) {
		this.cEpAppraisalId = cEpAppraisalId;
	}


	public String getcEpPhase() {
		return cEpPhase;
	}


	public void setcEpPhase(String cEpPhase) {
		this.cEpPhase = cEpPhase;
	}


	public BigDecimal getcEpSectionId() {
		return cEpSectionId;
	}


	public void setcEpSectionId(BigDecimal cEpSectionId) {
		this.cEpSectionId = cEpSectionId;
	}


	public String getcEpTemplate() {
		return cEpTemplate;
	}


	public void setcEpTemplate(String cEpTemplate) {
		this.cEpTemplate = cEpTemplate;
	}


	public BigDecimal getEmplRcd() {
		return emplRcd;
	}


	public void setEmplRcd(BigDecimal emplRcd) {
		this.emplRcd = emplRcd;
	}


	public String getEmplid() {
		return emplid;
	}


	public void setEmplid(String emplid) {
		this.emplid = emplid;
	}


	public BigDecimal getSeqnbr() {
		return seqnbr;
	}


	public void setSeqnbr(BigDecimal seqnbr) {
		this.seqnbr = seqnbr;
	}


	public BigDecimal getVersion() {
		return version;
	}


	public void setVersion(BigDecimal version) {
		this.version = version;
	}


	/* (non-Javadoc)
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((cEpAppraisalId == null) ? 0 : cEpAppraisalId.hashCode());
		result = prime * result
				+ ((cEpPhase == null) ? 0 : cEpPhase.hashCode());
		result = prime * result
				+ ((cEpSectionId == null) ? 0 : cEpSectionId.hashCode());
		result = prime * result
				+ ((cEpTemplate == null) ? 0 : cEpTemplate.hashCode());
		result = prime * result + ((emplRcd == null) ? 0 : emplRcd.hashCode());
		result = prime * result + ((emplid == null) ? 0 : emplid.hashCode());
		result = prime * result + ((seqnbr == null) ? 0 : seqnbr.hashCode());
		result = prime * result + ((version == null) ? 0 : version.hashCode());
		return result;
	}


	/* (non-Javadoc)
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		PsCEpAppSecRPrimary other = (PsCEpAppSecRPrimary) obj;
		if (cEpAppraisalId == null) {
			if (other.cEpAppraisalId != null)
				return false;
		} else if (!cEpAppraisalId.equals(other.cEpAppraisalId))
			return false;
		if (cEpPhase == null) {
			if (other.cEpPhase != null)
				return false;
		} else if (!cEpPhase.equals(other.cEpPhase))
			return false;
		if (cEpSectionId == null) {
			if (other.cEpSectionId != null)
				return false;
		} else if (!cEpSectionId.equals(other.cEpSectionId))
			return false;
		if (cEpTemplate == null) {
			if (other.cEpTemplate != null)
				return false;
		} else if (!cEpTemplate.equals(other.cEpTemplate))
			return false;
		if (emplRcd == null) {
			if (other.emplRcd != null)
				return false;
		} else if (!emplRcd.equals(other.emplRcd))
			return false;
		if (emplid == null) {
			if (other.emplid != null)
				return false;
		} else if (!emplid.equals(other.emplid))
			return false;
		if (seqnbr == null) {
			if (other.seqnbr != null)
				return false;
		} else if (!seqnbr.equals(other.seqnbr))
			return false;
		if (version == null) {
			if (other.version != null)
				return false;
		} else if (!version.equals(other.version))
			return false;
		return true;
	}


	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}
 